'use strict';


const Koa = require('koa');
const cors = require('koa2-cors');
const model=require('./model');
let app = new Koa();
app.use(cors());
const controller=require('./controllers');
const uu=require('./crawler');


controller(app);
// model.sync(true);
// uu();
let port = 4000;

app.listen(port);

console.log(`http://localhost:${port}`);
